package com.laundrySys.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.laundrySys.util.commonUtil;

@Controller
@RequestMapping("login")
public class LoginController {

	@RequestMapping("")
	public ModelAndView mv(HttpServletRequest request){
		ModelAndView mv = new ModelAndView("login");
		String ip = commonUtil.getIpAddr(request);
		mv.addObject("realIp",ip);
		return mv;
	}
	
	
}
